package com.molichuxing.gateway.bff.financial.entity.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhaopenghui
 * @create_date: 2019/10/12
 **/
@Data
public class ConvertSendEmailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 合同url
     */
    @ApiModelProperty(value = "合同url", required = true, dataType = "String")
    @NotNull(message = "合同url不能为空")
    private String url;

    /**
     * 邮箱地址
     */
    @ApiModelProperty(value = "邮箱地址", required = true, dataType = "String")
    @NotBlank(message = "邮箱地址不能为空")
    @Email(message = "邮箱格式错误")
    private String email;

    @ApiModelProperty(value = "合同名称", required = true, dataType = "String")
    private String title;

}
